<?php

add_action("manage_posts_custom_column",  "library_custom_columns");
add_filter("manage_edit-library_columns", "library_edit_columns");
 
function library_edit_columns($columns){
  $columns = array(
    "cb" => "<input type=\"checkbox\" />",
    "title" => __("Book Title"),
	"bookid" => "Book ID",
    "classcat" => "Class/Category",
    "authors" => "Authors",
    "pub" => "Publishers",
	"listdate" => "ListDate",
  );
 
  return $columns;
}
function library_custom_columns($column){
  global $post;
 
  switch ($column) {
      case "bookid":
      $custom = get_post_custom();
      echo $custom["bookid"][0];
      break;
    case "classcat":
      echo get_the_term_list($post->ID, 'classcat', '', ', ','');
      break;
    case "authors":
      echo get_the_term_list($post->ID, 'authors', '', ', ','');
      break;
    case "pub":
      echo get_the_term_list($post->ID, 'publishers', '', ', ','');
      break;
      case "listdate":
      echo get_the_term_list($post->ID, 'dates', '', ', ','');
      break;
  }
}
?>